import request from '@/utils/request'

export default {
  getList(params) {
    return request({
      url: '/saleCon/List',
      method: 'get',
      params
    })
  },
  getById(id) {
    return request({
      url: '/saleCon/getById/'+id,
      method: 'get'
    })
  },
  getBillById(id) {
    return request({
      url: '/saleCon/getBillById/'+id,
      method: 'get'
    })
  },
  Query(data){
    return request({
      url: '/saleCon/queryBy',
      method: 'post',
      data
    })
  },
  addcontact(data){
    return request({
      url: '/saleCon/addcontact',
      method: 'post',
      data
    })
  },

  addPurBill(data) {
    return request({
      url: '/saleCon/addBill',
      method: 'post',
      data
    })
  },
  addPurBill1(data) {
    return request({
      url: '/saleCon/addBill1',
      method: 'post',
      data
    })
  },
  Updatecontact(data) {
    return request({
      url: '/saleCon/update',
      method: 'post',
      data
    })
  },
  updateBill(data) {
    return request({
      url: '/saleCon/updateBill',
      method: 'post',
      data
    })
  },
  updateBillDetail(data) {
    return request({
      url: '/saleCon/updateBillDetail',
      method: 'post',
      data
    })
  }
}
